﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using MyVideoViewerLibrary;
using Microsoft.MediaCenter.UI;

namespace MyVideoViewerMCPlugin
{
    public class TVEpisode : ModelItem
    {
        public Episode Episode { get; set; }
        public string EpisodeNumberToString
        {
            get
            {
                if (Episode.EpisodeNumber.HasValue)
                    return Episode.EpisodeNumber.Value.ToString();
                else
                    return "";
            }
        }
        public string RatingToString
        {
            get
            {
                if (Episode.Rating.HasValue)
                    return Episode.Rating.Value.ToString();
                else
                    return "";
            }
        }


        public TVEpisode(){}
        public TVEpisode(Episode episode) 
        {
            Episode = episode;
        }

        
    }
}
